'use strict';
const db = uniCloud.database()
exports.main = async (event, context) => {
	const collection = db.collection("jsonfile_path")
	let res = collection.add({
		type: event.type,
		fileName: event.fileName,
		jsonPath: event.jsonPath,
	})
	//返回数据给客户端
	return res
};
